package com.knowif.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.knowif.dao.UserOrderStatusMapper;
import com.knowif.pojo.UserOrderStatus;
import com.knowif.pojo.UserOrderStatusExample;

@Service
public class UserOrderStatus_service {
	
	@Autowired
	private UserOrderStatusMapper userOrderStatusMapper;
	
	
	public List<UserOrderStatus> selectByUserOrderIds(List<Integer> userOrderIds){
		if(userOrderIds == null || userOrderIds.isEmpty()){
			return new ArrayList<UserOrderStatus>();
		}
		UserOrderStatusExample userOrderStatusExample = new UserOrderStatusExample();
		userOrderStatusExample.createCriteria().andUserOrderIdIn(userOrderIds);
		return userOrderStatusMapper.selectByExample(userOrderStatusExample);
	}
	

}
